<template>
	<view class="">
		<!-- 展示纸条 -->
		<textRich :initContent="textRichContent" :isReadOnly="true"></textRich>
	</view>
</template>

<script>
	import textRich from '@/components/textRich/textRich.vue'
	export default {
		components:{
			textRich
		},
		data(){
			return {
				textRichContent:''
			}
		},
		async onShow() {
			 var res= await this.getPaperInfo()
			 this.textRichContent=res.data.data.data.description
			 console.log(res)
		},
		methods:{
			getPaperInfo(){
				var {sex,end_age,start_age} =this.$store.state.getPaper.popup
				console.log(sex)
				return	this.$myRquest({
					url:'/pond/getScrip',
					method:'get',
					data:{
						sex,
						start_age,
						end_age
					}
				})
			}
		}
	}
</script>

<style>
</style>
